home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Internet / WWW / httpd_1.5.export / support / README.change-passwd < prev    next >
Encoding:
Text File  |  1995-11-10  |  2.6 KB  |  78 lines

  1. NCSA HTTPd change-passwd
  2.  
  3. I've gotten a number of requests for the form that corresponds to the
  4. change-passwd program that accidentally found itself in the NCSA httpd 1.0
  5. distribution.
  6.  
  7. A brief introduction: change-passwd is a way for remote users to change
  8. their password for user authentication on your system without going through
  9. you. 
  10.  
  11. To use this form, you must set up user authentication on your system
  12. (there's a short tutorial at
  13. http://hoohoo.ncsa.uiuc.edu/docs/tutorial/user.html). You will
  14. want to leave the form unprotected, and the script protected with ``require
  15. valid-user'' so that any valid user may log in.
  16.  
  17. Compile change-passwd with USER_FILE set to the location of the
  18. AuthUserFile, and WIZARD set to the user id you would like to use to perform
  19. administration (as the wizard, you can change other people's passwords, and
  20. add new users).
  21.  
  22. To install the script, place the executable somewhere on your system,
  23. preferably not in DocumentRoot and not in cgi-bin. Let's say you put it in
  24. /foo/bar/change-passwd. Add a line to srm.conf which says:
  25.  
  26. ScriptAlias /change-passwd /foo/bar/change-passwd
  27.  
  28. A common setup would be to have the following as /foo/bar/.htaccess:
  29.  
  30. AuthType Basic
  31. AuthName PasswordAdmin
  32. AuthUserFile /usr/local/httpd/conf/.htpasswd
  33.  
  34. <Limit POST>
  35. require valid-user
  36. </Limit>
  37.  
  38.  
  39. At this point, you should try the form. If the change-passwd script core
  40. dumps, or Mosaic does not prompt you for a user name or password after you
  41. click on the submit button, you have not set up user authenitcation properly.
  42.  
  43.  
  44. Here's the form:
  45.  
  46.  
  47. <TITLE>Change your password</TITLE>
  48. <H1>Change your password</H1>
  49.  
  50. <FORM ACTION="/change-passwd" METHOD="POST">
  51.  
  52. This is an HTML form used to change your password for HTTP user
  53. authentication on this system. <P>
  54. <HR>
  55. To use this form, you must know your user name on this system, and you must
  56. know your current password. <P>
  57.  
  58. First, enter your user name below. If you are defined to be the wizard on
  59. this server, and wish to change or add a user, enter their name below. <P>
  60.  
  61. User name: <P><INPUT TYPE="text" NAME="user"><P> 
  62.  
  63. Now, enter what you want to change your password to. <P>
  64.  
  65. New password: <P><INPUT
  66. TYPE="password" NAME="newpasswd1"><P> Re-type new password: <P><INPUT
  67. TYPE="password" NAME="newpasswd2"><P>
  68.  
  69. When you click on the Change password button below, you will be asked to
  70. authenticate yourself. If you are changing your own password, use your user
  71. id and your <EM>old</EM> password to log on. If you are the wizard on this
  72. server, use your own user id and password to log in.<P>
  73.  
  74. <INPUT TYPE="submit" VALUE="Change password"><P>
  75. <INPUT TYPE="reset" VALUE="Reset these fields"><P>
  76. </FORM>
  77.  
  78.